package com.cloudpolice.door.feignInterface.hystric;

import com.cloudpolice.door.feignInterface.UploadFileInterFace;
import lh.model.ResultVO;
import lh.units.ResultStruct;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;

/**
 *
 * @author liaoyueli
 * @date 2020-04-15
 */
@Service
public class UploadFileInterFaceHystric implements UploadFileInterFace {
    private final String hystricMessage = "您好，服务器正忙，请稍后再试！";

    @Override
    public String selectFileStreamById(@RequestParam(value = "id") String id
            , @RequestParam(value = "mobileSign", required = false, defaultValue = "false") boolean mobileSign
            , @RequestParam(value = "isBS", required = false, defaultValue = "true") boolean isBS) {
        return ResultStruct.error(hystricMessage, String.class, null);
    }

    @Override
    public ResultVO multiPartFileUploadByByteArray(@RequestBody byte[] fileStreamArray
            , @RequestParam(value = "fileName") String fileName
            , @RequestParam(value = "picRemark", required = false) String picRemark) {
        return ResultStruct.error(hystricMessage, ResultVO.class, null);
    }
}
